package org.quipu.client;

import static com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT;
import static com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
import org.quipu.client.events.AppEvent;
import org.quipu.client.events.AppEventBus;
import org.quipu.client.events.AppEventListener;

public class ReportsPanel extends AppEventWidget implements AppEventListener {

    private final VerticalPanel vPanel;

    public ReportsPanel(AppEventBus eventBus, AppCache cache) {
        super(eventBus, cache);
        vPanel = new VerticalPanel();
        vPanel.addStyleName("contentPanel");
        vPanel.addStyleName("gridPanel");
        vPanel.setHorizontalAlignment(ALIGN_LEFT);
        vPanel.setVerticalAlignment(ALIGN_TOP);
        for(int i = 0; i < 20; i++)
            vPanel.add(new Label("Reports"));
    }

    @Override
    public void init() {
    }

    @Override
    public void handleEvent(AppEvent event) {
    }

    @Override
    public Widget getWidget() {
        return  vPanel;
    }
}
